﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KPIS.GERP.GHRMS.MODEL;
using KPIS.GERP.GHRMS.IBLL;
using KPIS.GERP.GHRMS.IDAL;
using KPIS.GERP.GHRMS.DAL;

namespace KPIS.GERP.GHRMS.BLL
{
    public class TrainingScholarshipTypeBLL : ITrainingScholarshipTypeBLL
    {
        private static readonly ITrainingScholarshipTypeDAL dal = new TrainingScholarshipTypeDAL();
        ConvertNullable cn = new ConvertNullable();

        public TrainingScholarshipTypeBLL()
        {

        }
        public IList<TrainingScholarshipTypeInfo> GetFull()
        {
            return dal.GetFull();
        }
        public IList<TrainingScholarshipTypeInfo> GetList(String scholar_type_seq)
        {
            int ScholarTypeSeq = Convert.ToInt32(scholar_type_seq);
            return dal.GetList(ScholarTypeSeq);
        }
        public void Insert(TrainingScholarshipTypeInfo info)
        {
            try
            {
                dal.Insert(info);
            }
            catch
            {
                throw;
            }
        }
        public void Update(TrainingScholarshipTypeInfo info)
        {
            try
            {
                dal.Update(info);
            }
            catch
            {
                throw;
            }
        }
        public void Delete(TrainingScholarshipTypeInfo info)
        {
            try
            {
                dal.Delete(info);
            }
            catch
            {
                throw;
            }
        }
    }
}
